package com.open.capacity.paper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.Option;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author liangd
 * @since 2021-01-29 17:25
 */
@Mapper
public interface OptionDao extends BaseMapper<Option> {

    List<Option> findList(Map<String, Object> params);

    void updateOption(Option option);

    void insertOption(Option option);

    void deleteOption(Integer id);

    Set<Option> findOptionsByQuesIds(@Param("quesids") Set<Integer> quesids);
}
